package com.nari.ncps.screen.controller;

import com.nari.ncps.screen.service.UserService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "测试", description = "测试")
@RestController
@RequestMapping("/screen")
public class TestConctroller {

    @Autowired
    private UserService userService;


    @Operation(summary = "测试-测试1", description = "测试-测试1")
    @GetMapping("/data")
    public ResponseEntity<String> getData() {
        System.out.println("进入web-access层 ... 调用方法getData");
        // 可以直接使用Spring Web功能

        userService.serviceCall();
        return ResponseEntity.ok("Screen data");
    }


}
